package com.membership.cloud.jpa.domain;

import org.springframework.data.jpa.domain.AbstractPersistable;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.sql.Timestamp;

/**
 * Created by hiephn on 2014/06/28.
 */
@Entity
public class Customer extends AbstractPersistable<Integer> {
    private static final long serialVersionUID = 1L;

    @Column(nullable = false, length = 45)
    private String name;
    @Column(nullable = false, length = 128)
    private String barcode;
    @Column(length = 128)
    private String email;
    @Column(nullable = false, length = 128)
    private String fullName;
    @Column
    private Timestamp birthday;
    @Column(nullable = false, length = 20)
    private String phone;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBarcode() {
        return barcode;
    }

    public void setBarcode(String barcode) {
        this.barcode = barcode;
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public Timestamp getBirthday() {
        return birthday;
    }

    public void setBirthday(Timestamp birthday) {
        this.birthday = birthday;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
}
